# -*- coding: UTF-8 -*-
# -*- coding: UTF-8 -*-
import game.elements.props.equipment as GEQUIP
import panda3d.core as CORE
class Weapon(GEQUIP.Equipment):
    def __init__(self):
        pass
    def initWeapon(self,parent_to): 
        row = ("resource/models/kenxi/sword", (.11,.19,.06), (0,0,90), 1)
        np = loader.loadModel(row[0])              #Load the model
        np.setPos(row[1][0], row[1][1], row[1][2]) #Position it
        np.setHpr(row[2][0], row[2][1], row[2][2]) #Rotate it
        np.setScale(row[3])                        #Scale it
        #Reparent the model to the exposed joint. That way when the joint moves,
        #the model we just loaded will move with it.
        np.reparentTo(parent_to)
        pass